/*
 * alesmana
 */

package databeans;

import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;



public class Payment {

   
    //public static final String DEPOSIT_CHECK = "depositCheck";
    //public static final String WITHDRAW_FUND = "withdrawFund";
    
    private int paymentID = -1;
    private int customerID = -1;
    private int fundID = -1;
    private Date submitDate = null;
    String transactionType = null;
    long amount = 0;
    boolean executed = false; //to tell if the withdrawing check has been processed

    public Payment() {
        this.paymentID = -1;
        this.customerID = -1;
        this.fundID = -1;
        this.submitDate = null;
        this.transactionType = null;
        this.amount = 0;
        this.executed = false;
    }
    
    public Payment(int paymentID, int customerID, int fundID, Date submitDate, String transactionType, long amount, boolean executed) {
        this.paymentID = paymentID;
        this.customerID = customerID;
        this.fundID = fundID;
        this.submitDate = submitDate;
        this.transactionType = transactionType;
        this.amount = amount;
        this.executed = executed;
    }
    
    public int getPaymentID() {
        return paymentID;
    }

    public int getCustomerID() {
        return customerID;
    }

    public int getFundID() {
        return fundID;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public String getTransactionType() {
        return transactionType;
    }

    public long getAmount() {
        return amount;
    }

    public boolean isExecuted() {
        return executed;
    }

    public void setPaymentID(int paymentID) {
        this.paymentID = paymentID;
    }

    public void setCustomerID(int customerID) {
        this.customerID = customerID;
    }

    public void setFundID(int fundID) {
        this.fundID = fundID;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public void setTransactionType(String transactionType) {
        this.transactionType = transactionType;
    }

    public void setAmount(long amount) {
        this.amount = amount;
    }

    public void setExecuted(boolean executed) {
        this.executed = executed;
    }

}
